package com.example.om_export.common.utils;

import java.util.List;

/**
 * lay ui表格使用的返回数据
 */
public class LayuiDataGrid {

    private Integer code;

    private String msg;

    private Long count;

    private List<?> data;

    private LayuiDataGrid(Long count, List<?> data) {
        this.code=0;
        this.count = count;
        this.data = data;
    }

    public static LayuiDataGrid generate(Long count, List<?> data){
        return new LayuiDataGrid(count,data);
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Long getCount() {
        return count;
    }

    public void setCount(Long count) {
        this.count = count;
    }

    public List getData() {
        return data;
    }

    public void setData(List<?> data) {
        this.data = data;
    }
}
